package net.edu_soft.ec.asset.pojo;

import java.io.Serializable;

public class CloudFile implements Serializable {
    /**
     * 文件 id
     */
    private Integer cloudFileId;

    /**
     * 文件类型
     */
    private Integer fileTypeId;

    /**
     * 文件名
     */
    private String name;

    /**
     * 资源路径
     */
    private String url;

    /**
     * 大小
     */
    private Long size;

    /**
     * 归属id
     */
    private Integer affId;

    /**
     * 排序次序
     */
    private Integer sortOrder;

    /**
     * 状态 0可用 1不可用
     */
    private Integer status;

    private static final long serialVersionUID = 1L;

    public Integer getCloudFileId() {
        return cloudFileId;
    }

    public void setCloudFileId(Integer cloudFileId) {
        this.cloudFileId = cloudFileId;
    }

    public Integer getFileTypeId() {
        return fileTypeId;
    }

    public void setFileTypeId(Integer fileTypeId) {
        this.fileTypeId = fileTypeId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url == null ? null : url.trim();
    }

    public Long getSize() {
        return size;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public Integer getAffId() {
        return affId;
    }

    public void setAffId(Integer affId) {
        this.affId = affId;
    }

    public Integer getSortOrder() {
        return sortOrder;
    }

    public void setSortOrder(Integer sortOrder) {
        this.sortOrder = sortOrder;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", cloudFileId=").append(cloudFileId);
        sb.append(", fileTypeId=").append(fileTypeId);
        sb.append(", name=").append(name);
        sb.append(", url=").append(url);
        sb.append(", size=").append(size);
        sb.append(", affId=").append(affId);
        sb.append(", sortOrder=").append(sortOrder);
        sb.append(", status=").append(status);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}